package com.csun.dsms.service;

import com.csun.dsms.comment.core.support.IService;
import com.csun.dsms.model.domain.DsmsSchedule;
import com.csun.dsms.model.domain.DsmsScheduleLog;
import com.csun.dsms.model.dto.schedule.ScheduleLogQueryDto;

import java.util.Date;
import java.util.List;

/**
 * @author chisj chisj@foxmail.com
 * @version 1.0.0
 * @date 2021-09-23 15:34
 * @description: TODO
 */
public interface DsmsScheduleLogService extends IService<DsmsScheduleLog> {

    /**
     * 插入日志
     *
     * @param dsmsSchedule  the dsms schedule
     * @param startTime     the start time
     * @param endTime       the end time
     *
     * @return  the int.
     */
    Integer insert(DsmsSchedule dsmsSchedule, Date startTime, Date endTime);

    /**
     * 查到调度器日志记录 - 分页
     *
     * @param scheduleLogQueryDto   the schedule log query dto
     *
     * @return  the dsms schedule log list
     */
    List<DsmsScheduleLog> queryListWithPage(ScheduleLogQueryDto scheduleLogQueryDto);
}
